<?php
/****************************************************************************

	COPYRIGHT(C) WWW.MAXSI.DK, MAXSI SOFTWARE, SORTIE 2009
	ALL RIGHTS RESERVED

	Maxsi Distribution ContentServer/ Branch
	Scripts running a Maxsi Distribution Compatible Content Server.	
	
	login.php
	Provides a form for logging in.

****************************************************************************/

echo '<p><b class="text_big">Account System</b></p>';

if ( $md_accountsys )
{
	if ( $md_account )
	{
		if ( isset($_POST['user']) )
		{
			echo '<p>You are now logged in as '.$md_account_name.'.</p>';
		}
		else
		{
			echo '<p>You are currently logged in as '.$md_account_name.'.</p>';
		}
	}
	else
	{
?>
<form method="post" action="?action=login">
  <p><?php if ( strcmp($md_accounterror,"") != 0 ) { echo $md_accounterror.'<br /><br />'; } ?><b>Username:</b><br />
    <input name="user" type="text" size="40" />
    <br />
    <b>Password:</b><br />
    <input name="pass" type="password" size="40" />
    <br /><br />
    <input name="LogIn" type="submit" id="LogIn" value="Log In" />
  </p>
</form>
<?php } } else { ?>
<p>This Content Server does not support an account system.</p>
<?php } ?>